package com.itheima.homework;

// 职员类
public class Clerk extends Employee {
    // 属性
    private Manager manager;

    public Clerk() {
    }

    public Clerk(String name, String workId, String dept, Manager manager) {
        super(name, workId, dept);
        this.manager = manager;
    }

    public Manager getManager() {
        return manager;
    }

    public void setManager(Manager manager) {
        this.manager = manager;
    }

    @Override
    public void showMsg() {
        System.out.println(getDept() + "的: " + getName() + " ,员工编号: " + getWorkId() + "\n" +
                "他的经理是" + manager.getName());
    }
}
